<template>
  <div class="input-wrapper">
    <input
      :type="type"
      :placeholder="placeholder"
      :value="modelValue"
      @input="handleInput"
      class="custom-input"
    />
  </div>
</template>

<script>
export default {
  name: 'Input01',
  props: {
    placeholder: {
      type: String,
      default: ''
    },
    modelValue: {
      type: [String, Number],
      default: ''
    },
    type: {
      type: String,
      default: 'text'
    }
  },
  model: {
    prop: 'modelValue',
    event: 'update:modelValue'
  },
  methods: {
    handleInput(event) {
      this.$emit('update:modelValue', event.target.value);
      console.log('Input value:', event.target.value);
    }
  }
}
</script>

<style scoped>
.input-wrapper {
  position: relative;
  width: 100%;
}

.custom-input {
  width: 100%;
  height: 45px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.custom-input:focus {
  outline: none;
  border-color: #7bb9f8;
  box-shadow: 0 2px 12px rgba(123, 185, 248, 0.2);
  transform: translateY(-1px);
}

.custom-input::placeholder {
  color: #999;
}
</style>
